function Student(name, age) {
  this.name = name
  this.age = age
}

function Teacher() {

}

const stu = new Student('why', 18)
console.log(stu)
console.log(stu.__proto__ === Student.prototype)

// 需求：执行 Student 函数中的内容，但是创建出来的对象时 Teacher 类型的对象
const teacher = Reflect.construct(Student, ['jelly', 22], Teacher)
console.log(teacher)
console.log(teacher.__proto__ === Teacher.prototype)
